package practiceTest.chap04.work3;

/**
 * Created by root on 2017/7/14.
 */
public class StackYApp {
    public static void main(String[] args){
        StackY stackY = new StackY(5);
        for(int i=0; i<10; i++) {
            if (stackY.isFull()) {
                break;
            }
            stackY.push(i);
        }
        while (!stackY.isEmpty()) {
            System.out.println(stackY.pull());
        }
    }
}
